#define THIS_FILE "arreter.sqf"
#include <base\tmf_constants.h>
#include <base\tmf_macros.h>
WAITINIT(arreter);

// ["C_man_1_1_F","marker2"] execVM "arreter.sqf";
if (!isServer) exitWith {};
private ["_type","_marker"];
DEFAULT_PARAM(_type,0,"");
DEFAULT_PARAM(_marker,1,"");
DEFAULT_PARAM(_dest_marker,2,"");
if (_type == "" || _marker == "") exitWith{};

_obj_params = [];
_obj_params set [TMF_VEH_PARAMS_TYPE, _type];
_obj_params set [TMF_VEH_PARAMS_GRP, GVAR(enemy_side)];
_obj_params set [TMF_VEH_PARAMS_POS, _marker];

_tmf_params = [];
_tmf_params = [_tmf_params,"ARREST_MSG",["The culprit is under arrest!"]] call CFUNC(hashSet);
_tmf_params = [_tmf_params,"DIE_MSG",["Damn! You killed him..."]] call CFUNC(hashSet);
// _tmf_params = [_tmf_params,"SHARED_ARREST_VAR",""] call CFUNC(hashSet);
// _tmf_params = [_tmf_params,"SHARED_ALIVE_VAR",""] call CFUNC(hashSet);
// _tmf_params = [_tmf_params,"ARREST_CODE",""] call CFUNC(hashSet);
// _tmf_params = [_tmf_params,"DIE_CODE",""] call CFUNC(hashSet);

OBJ = [_obj_params,"ARREST",_tmf_params] call FFUNC(CreateMissionUnit);